﻿using System;
using System.Collections.Generic;
using System.ServiceModel;
using WcfService1.DTO;

namespace WcfService1
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IGroupServices" in both code and config file together.
    [ServiceContract]
    public interface IGroupServices
    {
        [OperationContract]
        List<GroupDTO> GetList(int page, out long recordCount, string sortProperty = null, string sortType = "ASC");

        [OperationContract]
        bool Save(GroupDTO group);

        [OperationContract]
        bool Delete(GroupDTO group);

        [OperationContract]
        List<GroupDTO> GetListByCriteria(Dictionary<String, Object> criteria, string expression, int page,
                                         out long recordCount);

        [OperationContract]
        List<GroupDTO> GetAll();

        [OperationContract]
        bool SendEmail(GroupDTO groupDto, String DestinationFolder);
    }
}